<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java 编程语言完全指南</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .content-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .content-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .section-title {
            position: relative;
            padding-left: 20px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 40px;
            margin-bottom: 30px;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 8px;
            width: 12px;
            height: 12px;
            background: #667eea;
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
        }
        
        .timeline-item::after {
            content: '';
            position: absolute;
            left: 15px;
            top: 20px;
            width: 2px;
            height: calc(100% + 10px);
            background: #e5e7eb;
        }
        
        .timeline-item:last-child::after {
            display: none;
        }
        
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            overflow-x: auto;
            position: relative;
        }
        
        .code-block::before {
            content: 'JAVA';
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 12px;
            color: #64748b;
            font-weight: 600;
        }
        
        .drop-cap {
            float: left;
            font-size: 4em;
            line-height: 0.8;
            margin: 0.1em 0.1em 0 0;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 40px 0;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-32 relative overflow-hidden">
        <div class="absolute inset-0 opacity-10">
            <div class="absolute top-10 left-10 w-72 h-72 bg-white rounded-full filter blur-3xl"></div>
            <div class="absolute bottom-10 right-10 w-96 h-96 bg-purple-300 rounded-full filter blur-3xl"></div>
        </div>
        <div class="container mx-auto px-6 relative z-10">
            <div class="text-center animate-fadeInUp">
                <h1 class="text-6xl font-bold mb-6">Java 编程语言</h1>
                <p class="text-2xl mb-8 opacity-90">一次编写，到处运行的革命性语言</p>
                <div class="flex justify-center items-center space-x-8 text-lg">
                    <div class="flex items-center">
                        <i class="fas fa-calendar-alt mr-2"></i>
                        <span>诞生于 1995 年</span>
                    </div>
                    <div class="flex items-center">
                        <i class="fas fa-user mr-2"></i>
                        <span>詹姆斯·高斯林 创造</span>
                    </div>
                    <div class="flex items-center">
                        <i class="fas fa-globe mr-2"></i>
                        <span>全球数百万开发者使用</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="container mx-auto px-6 py-16">
        <!-- Introduction Section -->
        <div class="content-card rounded-2xl shadow-xl p-10 mb-12">
            <h2 class="section-title text-3xl font-bold text-gray-800 mb-6">Java 介绍</h2>
            <div class="prose prose-lg max-w-none">
                <p class="text-gray-700 leading-relaxed mb-6">
                    <span class="drop-cap">J</span>ava是由Sun Microsystems公司于1995年5月推出的Java面向对象程序设计语言。当我们谈论编程语言中的杰作时，Java 通常是不可忽视的存在。作为一门流行且具有广泛应用的编程语言，Java 在软件开发领域占据了重要地位。无论是移动应用、Web 应用、大型企业级系统还是嵌入式设备，Java 都拥有强大的生态系统，为开发人员提供了无限的可能性。
                </p>
                <div class="bg-gradient-to-r from-purple-50 to-blue-50 rounded-xl p-6 my-8">
                    <div class="flex items-center">
                        <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1693624637434-9b7b9685-3f2b-4d5d-b6da-563281ef82e7.png" 
                             alt="詹姆斯·高斯林" 
                             class="w-32 h-32 rounded-full object-cover mr-6 shadow-lg">
                        <div>
                            <h3 class="text-2xl font-bold text-gray-800 mb-2">Java之父：詹姆斯·高斯林</h3>
                            <p class="text-gray-600">James Gosling，加拿大计算机科学家，Java编程语言的创始人</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- What is Java Section -->
        <div class="content-card rounded-2xl shadow-xl p-10 mb-12">
            <h2 class="section-title text-3xl font-bold text-gray-800 mb-6">Java 是什么</h2>
            <p class="text-gray-700 leading-relaxed text-lg mb-8">
                Java 是一种高级、跨平台的编程语言。这意味着你可以编写一次代码，然后在多个不同的计算机和操作系统上运行它，而无需担心兼容性问题。这是通过使用Java虚拟机（JVM）来实现的，JVM 会将你的代码翻译成特定平台的本地代码。
            </p>
            <div class="bg-gray-50 rounded-xl p-8">
                <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1707184335802-fa473896-a33a-454f-82fb-8198b10e1f4f.png" 
                     alt="Java架构图" 
                     class="mx-auto rounded-lg shadow-md">
            </div>
        </div>

        <!-- Java Features Section -->
        <div class="content-card rounded-2xl shadow-xl p-10 mb-12">
            <h2 class="section-title text-3xl font-bold text-gray-800 mb-8">Java 的特点</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-gradient-to-br from-purple-50 to-white p-6 rounded-xl border border-purple-100 hover:shadow-lg transition-all">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-globe-americas"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">跨平台性</h3>
                    <p class="text-gray-600">Java 可以在几乎所有操作系统上运行，包括Windows、macOS、Linux等。</p>
                </div>
                <div class="bg-gradient-to-br from-blue-50 to-white p-6 rounded-xl border border-blue-100 hover:shadow-lg transition-all">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-cubes"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">面向对象</h3>
                    <p class="text-gray-600">Java 是一种面向对象编程（OOP）语言，强调代码的模块化和可维护性。</p>
                </div>
                <div class="bg-gradient-to-br from-green-50 to-white p-6 rounded-xl border border-green-100 hover:shadow-lg transition-all">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">安全性</h3>
                    <p class="text-gray-600">Java 有强大的安全性功能，可以防止恶意代码的执行。</p>
                </div>
                <div class="bg-gradient-to-br from-yellow-50 to-white p-6 rounded-xl border border-yellow-100 hover:shadow-lg transition-all">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-book"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">丰富的库</h3>
                    <p class="text-gray-600">Java 生态系统拥有庞大的标准库和第三方库，适用于各种开发任务。</p>
                </div>
                <div class="bg-gradient-to-br from-pink-50 to-white p-6 rounded-xl border border-pink-100 hover:shadow-lg transition-all">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-layer-group"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">多线程支持</h3>
                    <p class="text-gray-600">Java 提供了多线程支持，使得开发者可以轻松地创建并发程序。</p>
                </div>
                <div class="bg-gradient-to-br from-indigo-50 to-white p-6 rounded-xl border border-indigo-100 hover:shadow-lg transition-all">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-users"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">开源社区</h3>
                    <p class="text-gray-600">Java 拥有强大的开源社区，提供免费的开发工具和库。</p>
                </div>
            </div>
            <div class="mt-10">
                <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1707184309424-1c55f875-3e19-4f37-a8e8-faac01024f76.png" 
                     alt="Java生态系统" 
                     class="w-full rounded-xl shadow-lg">
            </div>
        </div>

        <!-- Application Areas Section -->
        <div class="content-card rounded-2xl shadow-xl p-10 mb-12">
            <h2 class="section-title text-3xl font-bold text-gray-800 mb-8">Java 的应用领域</h2>
            <div class="space-y-6">
                <div class="flex items-start space-x-4">
                    <div class="flex-shrink-0 w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center">
                        <i class="fas fa-mobile-alt text-purple-600 text-xl"></i>
                    </div>
                    <div>
                        <h3 class="text-xl font-bold text-gray-